package com.qingchunlin.springaop.controller;

import com.qingchunlin.springaop.aspect.TestAnnotation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/test1")
@Controller
@ResponseBody
public class TestController1 {

    @TestAnnotation
    @RequestMapping("/t1")
    public String t1() {
        return "t1";
    }

    @RequestMapping("/t2")
    public boolean t2() {
        int a = 10 / 0;
        return true;
    }
}
